//
//  WishViewController.m
//  ProjectB
//
//  Created by lanou on 16/5/5.
//  Copyright © 2016年 lanou. All rights reserved.
//

#import "WishViewController.h"
#import "CreatWishTableViewController.h"
#import "DreamOfGalaxyViewController.h"

@interface WishViewController ()

@end

@implementation WishViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"心愿单";
    UIBarButtonItem *item = [[UIBarButtonItem alloc] initWithTitle:@"创建" style:UIBarButtonItemStylePlain target:self action:@selector(next)];
    self.navigationItem.rightBarButtonItem = item;
    
    // Do any additional setup after loading the view from its nib.
}

//导航栏按钮
- (void)next{
    CreatWishTableViewController *creatVC = [[CreatWishTableViewController alloc] init];
    [self.navigationController pushViewController:creatVC animated:YES];
}

//底部按钮
- (IBAction)flyButton:(id)sender {
    DreamOfGalaxyViewController *dreamVC = [[DreamOfGalaxyViewController alloc] init];
    [self.navigationController pushViewController:dreamVC animated:YES];
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
